<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表渲染</title>
    <script src="vue.js"></script>

</head>
<body>
<div id="div">
    <ul>
        <li v-for="name in names">
            {{name}}
        </li>
        <li v-for="value in student">
            {{value}}
        </li>
    </ul>
</div>
</body>
<script>
    new Vue({
        el:"#div",
        data:{
            names:["a","b","c"],
            student:{
                name:"d",
                age:22
            }
        }
    });
</script>
</html>